.clearfix {
    &::after {
        display: block;
        content: '';
        clear: both;
    }
}

.center {
    width: 1200px;
    margin: 0 auto;
}

.carbtn{
    float: left;
    background: #e1251b;
    height: 36px;
    padding:0 25px;
    font-size: 16px;
    border: none;
    color: #FFF;
}   

// 网页顶部导航条
.header_top {
    background: #eaeaea;
    height: 30px;

    .header_top_cont {
        .center;
        line-height: 30px;
        .clearfix;

        .header_top_cont_l {
            font-weight: bold;
            float: left;

            a {
                font-weight: normal;
            }

            em {
                font-weight: normal;
                font-size: 14px;
                color: #b3aeae;
            }
        }

        .header_top_cont_r {
            float: right;

            a {
                border-right: 1px solid #b3aeae;
                padding: 0 10px;

                &:last-child {
                    border-right: none;
                }
            }
        }
    }
}

// 网页搜索栏及logo
.header_mid {
    .center;
    .clearfix;

    #logo {
        width: 175px;
        height: 56px;
        float: left;
        margin: 25px 45px;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .searchbox {
        float: right;
        margin: 35px;

        input {
            box-sizing: border-box;
            float: left;
            width: 490px;
            height: 32px;
            padding: 0 4px;
            border: 3px solid #ea4a36;

        }

        button {
            float: left;
            width: 68px;
            height: 32px;
            background: #ea4a36;
            color: #FFF;
            border: none;

            &:active {
                background: yellow;
                color: #000;
            }
        }
    }
}

// 网页主导航条
.header_nav {
    border-bottom: 2px solid #e1251b;

    .header_nav_cont {
        .center;
        .clearfix;

        li {
            float: left;
            margin: 0px 22px;

            a {
                color: #333;
                font-size: 16px;
                line-height: 50px;
            }

            &:first-child {
                font-weight: bold;
                background: #e1251b;
                width: 210px;
                height: 50px;
                text-align: center;
                line-height: 50px;

                a {
                    color: #FFF;
                    font-size: 14px;
                }
            }
        }
    }

}

// 网页主要内容区域
.main {
    .center;
    margin-top: 15px;

    // 面包屑导航
    .crumbs {

        padding: 9px 15px 9px 0;

        i {
            padding: 0 5px;
        }
    }

    .main_top {
        .clearfix;
        margin: 5px 0 15px;
        // 放大镜区域
        .main_top_l {
            width: 400px;
            float: left;

            .main_top_l_simg_box {
                width: 400px;
                height: 400px;
                border: 1px solid #DFDFDF;
                position:relative;
                .mark{
                    width: 200px;
                    height: 200px;
                    background: rgba(255,255,255,.5);
                    border: 1px solid #ddd;
                    position: absolute;
                    top: 0;
                    left: 0;
                    display: none;
                }
                .bigimgbox{
                    width: 400px;
                    height: 400px;
                    border: 1px solid #DDD;
                    position: absolute;
                    top: 0;
                    left: 420px;
                    overflow: hidden;
                    display: none;
                }
            }

            .main_top_l_b {
                width: 400px;
                margin-top: 5px;

                .btn {
                    width: 10px;
                    height: 54px;
                    border: 1px solid #CCC;
                    background: #EBEBEB;
                    line-height: 54px;
                    float: left;

                }

                .main_top_simg_list_box {
                    width: 372px;
                    height: 56px;
                    float: left;
                    overflow: hidden;
                    margin-left: 4px;

                    ul {
                        width: 2000px;
                        transition: .5s all ease;

                        li {
                            width: 50px;
                            height: 50px;
                            float: left;
                            border: 1px solid #CCC;
                            padding: 2px;
                            margin-right: 20px;

                            img {
                                width: 100%;
                                height: 100%;
                            }
                        }
                    }
                }
            }
        }
        // 商品详情内容区
        .main_top_r {
            width: 700px;
            float: right;

            h3 {
                font-size: 14px;
                line-height: 21px;
                margin-top: 15px;
            }

            .sale {
                color: #e12228;
                margin-top: 15px;
            }

            .price_box {
                margin-top: 10px;
                line-height: 28px;
                background: #fee9ec;
                padding: 7px;

                em {
                    margin-right: 15px;
                    vertical-align: top;
                }

                span {
                    font-size: 16px;
                    color: #cc1122;
                    vertical-align: middle;
                }

                strong {
                    font-size: 24px;
                    color: #cc1122;
                    font-weight: bold;
                    vertical-align: middle;
                }

                i {
                    font-size: 12px;
                    color: #cc1122;
                    vertical-align: middle;

                }

                ins {
                    float: right;
                    text-decoration: none;
                }

                s {
                    vertical-align: top;
                    text-decoration: none;
                    width: 520px;
                    display: inline-block;
                }

                u {
                    text-decoration: none;
                    background: #c81623;
                    padding: 3px;
                    color: #FFF;
                }
            }

            .support {
                .clearfix;
                margin-top: 10px;
                line-height: 28px;

                em {
                    float: left;
                    margin-right: 15px;
                }

                p {
                    float: left;
                    width: 520px;
                    color: #999;
                }
            }

            .address {
                .clearfix;
                margin-top: 10px;
                line-height: 28px;
                border-bottom: 1px solid #ededed;

                em {
                    float: left;
                    margin-right: 15px;
                }

                p {
                    float: left;
                    width: 520px;
                    color: #999;
                }
            }
            .choose_box{
                margin-top: 20px;
                .clearfix;
                span{
                    height: 30px;
                    line-height: 30px;
                    float: left;
                    padding:0 20px;
                    margin-right: 20px;
                    background: snow;
                    border: 1px solid #ddd;
                    i{
                        margin-left: 20px;
                        color: red;
                    }
                }
            }

            .configuration {
                margin-top: 10px;
                line-height: 28px;

                dl {
                    .clearfix;
                    margin: 13px 0;

                    dt {
                        margin-right: 15px;
                        float: left;
                    }

                    dd {
                        float: left;
                        margin-right: 5px;
                        color: #666;
                        line-height: 24px;
                        padding: 2px 14px;
                        border: 1px solid #eee;
                        border-bottom-color: #bbb;
                        border-right-color: #bbb;
                        &:first-of-type{
                            color: red;
                        }
                    }
                }
            }

            .shopcar_box {
                .clearfix;
                .shopcar_box_l {
                    float: left;
                    width: 55px;
                    margin-right: 15px;
                    position: relative;

                    input {
                        width: 38px;
                        height: 37px;
                        border: 1px solid #ddd;
                        color: #555;

                    }
                    a {
                        border: 1px solid #ddd;
                        width: 15px;
                        height: 18px;
                        background: #f1f1f1;
                        color: #666;
                        text-align: center;
                        line-height: 18px;
                        position: absolute;
                        top: 0;
                        right: 0;

                        &:last-child {
                            top: 20px;
                        }
                    }
                }
                button{
                    .carbtn;
                }
            }
        }
    }

    .main_content{
        
        .clearfix;
        margin-top: 30px;
        .main_content_l{
            width: 210px;
            border: 1px solid #CCC;
            float: left;
            .btn_list{
                .clearfix;
                li{
                  float: left;
                  height: 40px;
                  border-top: 3px solid #FFF;
                  width: 105px;
                  line-height: 37px;
                  border-bottom: 1px solid #CCC;
                  text-align: center;
                  font-weight: bold;
                }
                .active{
                    border-top: 3px solid #e1251b;
                    border-bottom: none;
                }
            }
            .box_list{
                padding: 10px;
                .box{
                    display: none;
                    .goods_menu{
                        li{
                            width: 50%;
                            float: left;
                            border-bottom: 1px dashed #ededed;
                            line-height: 28px;
                        }
                    }
                    .goods_menu2{
                        li{
                            margin: 5px 0 15px;
                            padding-bottom: 10px;
                            border-bottom: 1px solid #ededed;
                            img{
                                width: 152px;

                            }
                            .price{
                                color: #c81623;
                                font-size: 16px;
                            }
                            .btnbox{
                                margin-top: 5px;
                                text-align: center;
                                a{
                                    color: #8c8c8c;
                                    border: 1px solid #8c8c8c;
                                    padding: 2px 14px;
                                    line-height: 18px;
                                }
                            }
                        }
                    }
                }
                .show{
                    display: block;
                }
            }
        }
        .main_content_r{
            // border: 1px solid red;
            width: 980px;
            float: right;
            .main_content_r_t{
                border: 1px solid #DDD;
                margin-bottom: 15px;
                h4{
                    background: #f1f1f1;
                    border-bottom: 1px solid #DDD;
                    padding: 5px 0 5px 15px;
                    color: #333;
                }
                .choosebox{
                    padding-top: 10px;
                    height: 170px;
                    .clearfix;
                    .goodsbox{
                        float: left;
                        width: 127px;
                        height: 165px;
                        color: #c81623;
                        font-size: 16px;
                        position: relative;
                        text-align: center;
                        img{
                            width: 87px;
                            margin: 0 auto;
                        }
                        i{
                            position: absolute;
                            top: 48px;
                            right: -25px;
                            color: #333;
                        }
                    }
                    .choosebox_list{
                        float: left;
                        width: 668px;
                        height: 165px;
                        li{
                            float: left;
                            width: 127px;
                            margin: 0 20px;
                            text-align: center;
                            img{
                                width: 120px;
                                height: 130px;
                            }
                        }
                    }
                    .choosebox_r{
                        border-left: 1px solid #ddd;
                        width: 153px;
                        height: 165px;
                        float: left;
                        padding-left: 20px;
                        p{
                            &:nth-child(1){
                                margin: 10px 0;
                            }
                            &:nth-child(2){
                                margin-bottom: 10px;
                                font-weight: bold;
                            }
                            &:nth-child(3){
                                margin-bottom: 10px;
                                color: #B1191A;
                                font-size: 16px;
                            }
                        }
                        button{
                            .carbtn;
                        }
                    }
                }
            }
            .main_content_r_b{
                .btn_list{
                    background: #ededed;
                    .clearfix;
                    li{
                        background: #FFF;
                        border: 1px solid #ddd;
                        float: left;
                        height: 40px;
                        padding: 0 11px;
                        text-align: center;
                        line-height: 40px;
                        margin-left: -1px;
                    }
                    .active{
                        background: red;
                        a{
                            color: #FFF;
                        }
                    }
                }
                .box_list{
                    .show{
                        display: block;
                    }
                    li{
                        display: none;
                    }
                }
            }
        }
    }
}